//
//  UIButton+UINavigationItem.m
//  YIChuSeller
//
//  Created by 田小椿 on 2018/11/29.
//  Copyright © 2018年 xiangshengjun. All rights reserved.
//

#import "UIButton+UINavigationItem.h"

@implementation UIButton (UINavigationItem)
+ (UIButton *)setButtonTitleNormal:(NSString *)normalTitle  buttonTitlSelect:(NSString *)selectTitle buttonTintColor:(UIColor *)textColor textFont:(UIFont *)font
{
    UIButton *itemBtn=[UIButton buttonWithType:UIButtonTypeCustom];
    itemBtn.frame=CGRectMake(0,5,40,20);
    [itemBtn setTitle:normalTitle forState:UIControlStateNormal];
    [itemBtn setTitle:selectTitle forState:UIControlStateSelected];
    [itemBtn setTintColor:textColor];
    itemBtn.titleLabel.font = font;
    return itemBtn;
}
+ (UIButton *)setButtonTitleNormal:(NSString *)normalTitle buttonTintColor:(nonnull UIColor *)textColor
{
    UIButton *itemBtn=[UIButton buttonWithType:UIButtonTypeCustom];
    itemBtn.frame=CGRectMake(0,5,40,20);
    [itemBtn setTitle:normalTitle forState:UIControlStateNormal];
    [itemBtn setTintColor:textColor];
    itemBtn.titleLabel.font = [UIFont systemFontOfSize:13];
    return itemBtn;
}
@end
